package com.example.compkeylab.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Cheng Guanghao
 * @since 2023-11-27
 */
@TableName("hot_keywords")
@ApiModel(value = "HotKeywords对象", description = "")
public class HotKeywords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("近一周热度较高的关键词")
    private String keyword;

    @ApiModelProperty("搜索量")
    private Integer searchVolume;

    @ApiModelProperty("搜索人次")
    private Integer searchNumber;

    @ApiModelProperty("热度，0.4*搜索量+0.6*搜索人次")
    private Double heat;

    @ApiModelProperty("热度排名")
    private Integer heatRank;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getSearchVolume() {
        return searchVolume;
    }

    public void setSearchVolume(Integer searchVolume) {
        this.searchVolume = searchVolume;
    }

    public Integer getSearchNumber() {
        return searchNumber;
    }

    public void setSearchNumber(Integer searchNumber) {
        this.searchNumber = searchNumber;
    }

    public Double getHeat() {
        return heat;
    }

    public void setHeat(Double heat) {
        this.heat = heat;
    }

    public Integer getHeatRank() {
        return heatRank;
    }

    public void setHeatRank(Integer heatRank) {
        this.heatRank = heatRank;
    }

    @Override
    public String toString() {
        return "HotKeywords{" +
                "id=" + id +
                ", keyword=" + keyword +
                ", searchVolume=" + searchVolume +
                ", searchNumber=" + searchNumber +
                ", heat=" + heat +
                ", heatRank=" + heatRank +
                "}";
    }
}
